<template>
  <div class="box">
    <div class="orbit-loader">
      <div class="orbit orbit-1">
        <div class="particle"></div>
      </div>
      <div class="orbit orbit-2">
        <div class="particle"></div>
      </div>
      <div class="orbit orbit-3">
        <div class="particle"></div>
      </div>
      <div class="center-core"></div>
    </div>
    <div class="loading-text">Initializing...</div>
  </div>
</template>

<style lang="scss" scoped>
.box {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.orbit-loader {
  position: relative;
  width: 80px;
  height: 80px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 50%;
  animation: rotate 3s linear infinite;
}

.orbit-1 {
  width: 80px;
  height: 80px;
  top: 0;
  left: 0;
  animation-duration: 2s;
}

.orbit-2 {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.orbit-3 {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  animation-duration: 1s;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: linear-gradient(45deg, #9333ea, #c084fc);
  border-radius: 50%;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

.center-core {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, #9333ea, #c084fc);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.7);
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.7;
  }
}

.loading-text {
  font-size: 0.875rem;
  color: #a3a3a3;
  font-weight: 500;
  animation: fade 2s ease-in-out infinite;
}

@keyframes fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
</style>